<%@page import="org.json.JSONObject"%>
<%@page import="sopt.engSearch.TwitterAPI"%><%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<%
	TwitterAPI twit = new TwitterAPI();
	if(session.getAttribute("MEMBER_SEQ")==null){
		
		twit.toAuthPage(request,response);
	}else{
		JSONObject result = twit.getMemberInfoBySeq(session.getAttribute("MEMBER_SEQ").toString());
	%>
		
	<script>
		alert('You were logined');
		window.opener.regSuccess(<%=result%>);
		window.close();
	</script>
<%}%>
